function Person(p:Person){
    return `Hello,i am ${p.name}`
}
interface Person{
    name:string
}
// 联合类型
type abc= number | string
// 交叉类型
type def=Person &{age:number}

let obj:def={
    name:'pengshicong',
    age:18
}
type p=Person